/*
 * Created by JFormDesigner on Mon Nov 28 21:04:10 GMT+04:00 2011
 */

package ru.neoflex.jedit.plugin.ui;

import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;
import org.jdesktop.layout.GroupLayout;
import org.jdesktop.layout.LayoutStyle;

/**
 * @author Кирилл Сазонов
 */
public class NeoflexStateDialog extends JDialog {
    public NeoflexStateDialog(Frame owner) {
        super(owner);
        initComponents();
    }

    public NeoflexStateDialog(Dialog owner) {
        super(owner);
        initComponents();
    }

    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        // Generated using JFormDesigner non-commercial license
        panel2 = new JPanel();
        label2 = new JLabel();
        label3 = new JLabel();
        tbBundlesCount = new JTextField();
        tbBundleFilesCount = new JTextField();
        button4 = new JButton();
        button5 = new JButton();
        btnRebuildBundlesIndex = new JButton();
        panel1 = new JPanel();
        label1 = new JLabel();
        tbXhtmlTagsCount = new JTextField();
        button1 = new JButton();
        btnReloadXhtmlAutocompletions = new JButton();
        button3 = new JButton();
        panel3 = new JPanel();
        scrollPane1 = new JScrollPane();
        lstWebFolders = new JList();
        label4 = new JLabel();
        label5 = new JLabel();
        scrollPane2 = new JScrollPane();
        lstSourceFolders = new JList();
        btnAddWebFolder = new JButton();
        btnRemoveWebFolder = new JButton();
        btnRemoveSourceFolder = new JButton();
        btnAddSourceFolder = new JButton();
        btnRebuildIndexAll = new JButton();
        panel4 = new JPanel();
        label6 = new JLabel();
        label7 = new JLabel();
        tbJavaClassesCount = new JTextField();
        tbSourceFilesCount = new JTextField();
        button12 = new JButton();
        button13 = new JButton();
        btnRebuildJavaClassesIndex = new JButton();

        //======== this ========
        setResizable(false);
        setModal(true);
        setTitle("Neoflex Plugin State");
        Container contentPane = getContentPane();

        //======== panel2 ========
        {
            panel2.setBorder(new TitledBorder("\u0424\u0430\u0439\u043b\u044b properties"));

            //---- label2 ----
            label2.setText("\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0431\u0430\u043d\u0434\u043b\u043e\u0432");

            //---- label3 ----
            label3.setText("\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432");

            //---- tbBundlesCount ----
            tbBundlesCount.setEditable(false);

            //---- tbBundleFilesCount ----
            tbBundleFilesCount.setEditable(false);

            //---- button4 ----
            button4.setText("...");
            button4.setEnabled(false);

            //---- button5 ----
            button5.setText("...");
            button5.setEnabled(false);

            //---- btnRebuildBundlesIndex ----
            btnRebuildBundlesIndex.setText("\u041f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441...");

            GroupLayout panel2Layout = new GroupLayout(panel2);
            panel2.setLayout(panel2Layout);
            panel2Layout.setHorizontalGroup(
                panel2Layout.createParallelGroup()
                    .add(panel2Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(panel2Layout.createParallelGroup(GroupLayout.LEADING, false)
                            .add(panel2Layout.createSequentialGroup()
                                .add(label2)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(tbBundlesCount, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE))
                            .add(panel2Layout.createSequentialGroup()
                                .add(label3)
                                .addPreferredGap(LayoutStyle.UNRELATED)
                                .add(tbBundleFilesCount)))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel2Layout.createParallelGroup()
                            .add(panel2Layout.createSequentialGroup()
                                .add(button4, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.RELATED, 41, Short.MAX_VALUE)
                                .add(btnRebuildBundlesIndex))
                            .add(button5, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
            );
            panel2Layout.setVerticalGroup(
                panel2Layout.createParallelGroup()
                    .add(panel2Layout.createSequentialGroup()
                        .add(panel2Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label2)
                            .add(tbBundlesCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .add(button4, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
                            .add(btnRebuildBundlesIndex))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel2Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label3)
                            .add(tbBundleFilesCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .add(button5, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)))
            );
        }

        //======== panel1 ========
        {
            panel1.setBorder(new TitledBorder("XHTML \u0430\u0432\u0442\u043e\u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435"));

            //---- label1 ----
            label1.setText("\u0417\u0430\u0433\u0440\u0443\u0436\u0435\u043d\u043e \u0442\u044d\u0433\u043e\u0432:");

            //---- tbXhtmlTagsCount ----
            tbXhtmlTagsCount.setEditable(false);

            //---- button1 ----
            button1.setText("...");
            button1.setEnabled(false);

            //---- btnReloadXhtmlAutocompletions ----
            btnReloadXhtmlAutocompletions.setText("\u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c");

            //---- button3 ----
            button3.setText("\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0442\u044d\u0433...");
            button3.setEnabled(false);

            GroupLayout panel1Layout = new GroupLayout(panel1);
            panel1.setLayout(panel1Layout);
            panel1Layout.setHorizontalGroup(
                panel1Layout.createParallelGroup()
                    .add(panel1Layout.createSequentialGroup()
                        .add(panel1Layout.createParallelGroup()
                            .add(panel1Layout.createSequentialGroup()
                                .add(53, 53, 53)
                                .add(label1)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(tbXhtmlTagsCount, GroupLayout.PREFERRED_SIZE, 38, GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(button1, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
                            .add(panel1Layout.createSequentialGroup()
                                .addContainerGap()
                                .add(button3)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(btnReloadXhtmlAutocompletions)))
                        .addContainerGap(161, Short.MAX_VALUE))
            );
            panel1Layout.setVerticalGroup(
                panel1Layout.createParallelGroup()
                    .add(panel1Layout.createSequentialGroup()
                        .add(panel1Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label1)
                            .add(tbXhtmlTagsCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .add(button1, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel1Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(button3)
                            .add(btnReloadXhtmlAutocompletions)))
            );
        }

        //======== panel3 ========
        {
            panel3.setBorder(new TitledBorder("\u041f\u0440\u043e\u0435\u043a\u0442"));

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(lstWebFolders);
            }

            //---- label4 ----
            label4.setText("\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 Web");

            //---- label5 ----
            label5.setText("\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0438 Sources");

            //======== scrollPane2 ========
            {
                scrollPane2.setViewportView(lstSourceFolders);
            }

            //---- btnAddWebFolder ----
            btnAddWebFolder.setText("\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c");

            //---- btnRemoveWebFolder ----
            btnRemoveWebFolder.setText("\u0443\u0434\u0430\u043b\u0438\u0442\u044c");

            //---- btnRemoveSourceFolder ----
            btnRemoveSourceFolder.setText("\u0443\u0434\u0430\u043b\u0438\u0442\u044c");

            //---- btnAddSourceFolder ----
            btnAddSourceFolder.setText("\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c");

            //---- btnRebuildIndexAll ----
            btnRebuildIndexAll.setText("\u041f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441...");

            GroupLayout panel3Layout = new GroupLayout(panel3);
            panel3.setLayout(panel3Layout);
            panel3Layout.setHorizontalGroup(
                panel3Layout.createParallelGroup()
                    .add(panel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(panel3Layout.createParallelGroup()
                            .add(scrollPane2, GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE)
                            .add(GroupLayout.TRAILING, scrollPane1, GroupLayout.DEFAULT_SIZE, 391, Short.MAX_VALUE)
                            .add(panel3Layout.createSequentialGroup()
                                .add(label5)
                                .addPreferredGap(LayoutStyle.RELATED, 128, Short.MAX_VALUE)
                                .add(btnAddSourceFolder)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(btnRemoveSourceFolder))
                            .add(panel3Layout.createSequentialGroup()
                                .add(label4)
                                .addPreferredGap(LayoutStyle.RELATED, 144, Short.MAX_VALUE)
                                .add(btnAddWebFolder)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(btnRemoveWebFolder))
                            .add(btnRebuildIndexAll))
                        .addContainerGap())
            );
            panel3Layout.setVerticalGroup(
                panel3Layout.createParallelGroup()
                    .add(panel3Layout.createSequentialGroup()
                        .add(panel3Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label4)
                            .add(btnRemoveWebFolder, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
                            .add(btnAddWebFolder, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(scrollPane1, GroupLayout.PREFERRED_SIZE, 93, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel3Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label5)
                            .add(btnRemoveSourceFolder, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE)
                            .add(btnAddSourceFolder, GroupLayout.PREFERRED_SIZE, 19, GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(scrollPane2, GroupLayout.PREFERRED_SIZE, 117, GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(btnRebuildIndexAll))
            );
        }

        //======== panel4 ========
        {
            panel4.setBorder(new TitledBorder("\u0424\u0430\u0439\u043b\u044b java"));

            //---- label6 ----
            label6.setText("\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043b\u0430\u0441\u0441\u043e\u0432");

            //---- label7 ----
            label7.setText("\u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0444\u0430\u0439\u043b\u043e\u0432");

            //---- tbJavaClassesCount ----
            tbJavaClassesCount.setEditable(false);

            //---- tbSourceFilesCount ----
            tbSourceFilesCount.setEditable(false);

            //---- button12 ----
            button12.setText("...");
            button12.setEnabled(false);

            //---- button13 ----
            button13.setText("...");
            button13.setEnabled(false);

            //---- btnRebuildJavaClassesIndex ----
            btnRebuildJavaClassesIndex.setText("\u041f\u0435\u0440\u0435\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0438\u043d\u0434\u0435\u043a\u0441...");
            btnRebuildJavaClassesIndex.setEnabled(false);

            GroupLayout panel4Layout = new GroupLayout(panel4);
            panel4.setLayout(panel4Layout);
            panel4Layout.setHorizontalGroup(
                panel4Layout.createParallelGroup()
                    .add(panel4Layout.createSequentialGroup()
                        .addContainerGap()
                        .add(panel4Layout.createParallelGroup(GroupLayout.LEADING, false)
                            .add(panel4Layout.createSequentialGroup()
                                .add(label6)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(tbJavaClassesCount, GroupLayout.PREFERRED_SIZE, 55, GroupLayout.PREFERRED_SIZE))
                            .add(panel4Layout.createSequentialGroup()
                                .add(label7)
                                .addPreferredGap(LayoutStyle.RELATED)
                                .add(tbSourceFilesCount)))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel4Layout.createParallelGroup()
                            .add(panel4Layout.createSequentialGroup()
                                .add(button12, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(LayoutStyle.RELATED, 41, Short.MAX_VALUE)
                                .add(btnRebuildJavaClassesIndex))
                            .add(button13, GroupLayout.PREFERRED_SIZE, 20, GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
            );
            panel4Layout.setVerticalGroup(
                panel4Layout.createParallelGroup()
                    .add(panel4Layout.createSequentialGroup()
                        .add(panel4Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label6)
                            .add(tbJavaClassesCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .add(button12, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE)
                            .add(btnRebuildJavaClassesIndex))
                        .addPreferredGap(LayoutStyle.RELATED)
                        .add(panel4Layout.createParallelGroup(GroupLayout.BASELINE)
                            .add(label7)
                            .add(tbSourceFilesCount, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                            .add(button13, GroupLayout.PREFERRED_SIZE, 18, GroupLayout.PREFERRED_SIZE))
                        .addContainerGap())
            );
        }

        GroupLayout contentPaneLayout = new GroupLayout(contentPane);
        contentPane.setLayout(contentPaneLayout);
        contentPaneLayout.setHorizontalGroup(
            contentPaneLayout.createParallelGroup()
                .add(contentPaneLayout.createSequentialGroup()
                    .addContainerGap()
                    .add(contentPaneLayout.createParallelGroup()
                        .add(panel1, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(GroupLayout.TRAILING, panel2, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(panel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                        .add(panel3, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addContainerGap())
        );
        contentPaneLayout.setVerticalGroup(
            contentPaneLayout.createParallelGroup()
                .add(contentPaneLayout.createSequentialGroup()
                    .addContainerGap()
                    .add(panel1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.RELATED)
                    .add(panel2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.RELATED)
                    .add(panel4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(LayoutStyle.RELATED)
                    .add(panel3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        pack();
        setLocationRelativeTo(getOwner());
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
    }

    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // Generated using JFormDesigner non-commercial license
    private JPanel panel2;
    private JLabel label2;
    private JLabel label3;
    private JTextField tbBundlesCount;
    private JTextField tbBundleFilesCount;
    private JButton button4;
    private JButton button5;
    private JButton btnRebuildBundlesIndex;
    private JPanel panel1;
    private JLabel label1;
    private JTextField tbXhtmlTagsCount;
    private JButton button1;
    private JButton btnReloadXhtmlAutocompletions;
    private JButton button3;
    private JPanel panel3;
    private JScrollPane scrollPane1;
    private JList lstWebFolders;
    private JLabel label4;
    private JLabel label5;
    private JScrollPane scrollPane2;
    private JList lstSourceFolders;
    private JButton btnAddWebFolder;
    private JButton btnRemoveWebFolder;
    private JButton btnRemoveSourceFolder;
    private JButton btnAddSourceFolder;
    private JButton btnRebuildIndexAll;
    private JPanel panel4;
    private JLabel label6;
    private JLabel label7;
    private JTextField tbJavaClassesCount;
    private JTextField tbSourceFilesCount;
    private JButton button12;
    private JButton button13;
    private JButton btnRebuildJavaClassesIndex;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
